package cn.glc.daily.life.model.vo.dict;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 字典表返回视图
 *
 * @author simon
 * @date 2021/4/13 12:00
 * @copyright:
 * @modifier
 * @motto a no talent, people who have to study hard
 */
@Data
@EqualsAndHashCode()
@ApiModel(value = "字典表返回视图")
public class DictVo {

    /**
     * 唯一值（当前节点的值,树）
     */
    private String code;
    /**
     * 父节点的值 e.g:0
     */
    private String parentCode;
    /**
     * 字典名称
     */
    private String title;
    /**
     * 字典别名
     */
    private String dictLabel;
    /**
     * 字典标签名对应的值
     */
    private String dictValue;
    /**
     * 字典类型
     */
    private String dictType;
    /**
     * 序号(10的整数倍)
     */
    private Short sequence;
    /**
     * 备注
     */
    private String remark;
    /**
     * 权重(10的整数倍)
     */
    private Short weight;
    /**
     * 是否禁用,0:启用/1:禁用
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Boolean isOpen;
    /**
     * 是否系统默认
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Boolean isSys;
}
